package org.amicofragile.test.springintegration.logic;

import org.amicofragile.test.springintegration.dto.Person;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
@Service("helloService2")
public class HelloServiceImpl2 implements HelloService
{
	private static final Log LOG = LogFactory.getLog(HelloServiceImpl2.class);
	public void sayHelloTo(Person person)
	{
		LOG.info("2nd version: Hello, " + person.getName() + " " + person.getSurname());
	}
	@Override
	public Person normalize(Person person)
	{
		return new Person(person.getName().toLowerCase(), person.getSurname().toLowerCase());
	}
}
